package com.youlai.boot.bmp.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import jakarta.validation.constraints.*;

/**
 * 流程分类表单对象
 *
 * @author rabit
 * @since 2025-10-22 21:32
 */
@Getter
@Setter
@Schema(description = "流程分类表单对象")
public class ProcessCategoryForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "分类名称")
    @NotBlank(message = "分类名称不能为空")
    @Size(max=50, message="分类名称长度不能超过50个字符")
    private String categoryName;

    @Schema(description = "分类类型(0:流程分类-数据收集流;1:流程分类-工单流)")
    @NotBlank(message = "分类类型不能为空")
    private Integer categoryType;

    @Schema(description = "状态(0:正常;1:禁用)")
    private Integer status;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "备注")
    @Size(max=255, message="备注长度不能超过255个字符")
    private String remark;


}
